<?php
namespace app\common\model;

use think\Model;

class Mall extends Model
{
    protected $autoWriteTimestamp =true;
    protected $type = [
        
        'create_time'  =>  'timestamp:Y/m/d H:i:s',
        'update_time'  =>  'timestamp:Y/m/d H:i:s',
    
    ];

    public function specs(){
        return $this->hasMany('MallSpec','mall_id','id')->field('val,title,spec_id');
    }
    


}